﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FormRemoteModel.PhysicalQuery.Model
{
    public class PhysicalQueryAdd : PhysicalQuerySet
    {
        [NumValidate("form.id.error", 1)]
        public long FormId
        {
            get;
            set;
        }
        [NumValidate("form.query.control.id.error", 1)]
        public long ControlId
        {
            get;
            set;
        }
        [EnumValidate("form.location.error", typeof(LayoutLocation))]
        public LayoutLocation Location
        {
            get;
            set;
        }
        public bool IsMultiple { get; set; }

        [NullValidate("form.control.code.null")]
        public string ControlCode
        {
            get;
            set;
        }
    }
}
